# Maintainer: Alex McGrath <amk@amk.ie>
pkgname=tree-sitter-go-mod
pkgver=1.0.1
pkgrel=0
pkgdesc="go.mod file grammar for tree-sitter"
url="https://github.com/camdencheek/tree-sitter-go-mod"
license="MIT"
arch="all"
makedepends="tree-sitter-dev"
checkdepends="tree-sitter-cli"
install_if="tree-sitter-grammars"
source="$pkgname-$pkgver.tar.gz::https://github.com/camdencheek/tree-sitter-go-mod/archive/refs/tags/v$pkgver.tar.gz"

build() {
	abuild-tree-sitter build
}

check() {
	tree-sitter test
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
c00fb59de5ecce838fc58c74848a91ef33b22979dea18d918d823f86291cd9bbdcdeeedc205b281421399777c0a2a372f5badbc910cfefad9ee938e09534fa8f  tree-sitter-go-mod-1.0.1.tar.gz
"
